package org.patchca.filter.predefined;

import java.awt.image.BufferedImageOp;
import java.util.ArrayList;
import java.util.List;
import org.patchca.color.ColorFactory;
import org.patchca.filter.library.CurvesImageOp;

public class CurvesRippleFilterFactory extends RippleFilterFactory
{
    protected CurvesImageOp curves = new CurvesImageOp();

    public CurvesRippleFilterFactory()
    {
    }

    public CurvesRippleFilterFactory(ColorFactory colorFactory)
    {
        setColorFactory(colorFactory);
    }

    protected List<BufferedImageOp> getPreRippleFilters()
    {
        List<BufferedImageOp> list = new ArrayList<BufferedImageOp>();
        list.add(this.curves);
        return list;
    }

    public void setStrokeMin(float strokeMin)
    {
        this.curves.setStrokeMin(strokeMin);
    }

    public void setStrokeMax(float strokeMax)
    {
        this.curves.setStrokeMax(strokeMax);
    }

    public void setColorFactory(ColorFactory colorFactory)
    {
        this.curves.setColorFactory(colorFactory);
    }
}
